package com.tools.entity;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 基础信息的实体类
 *
 * @author < a href=" ">ZhangYang</ a>
 * @version v1.0.01
 * @date 2018-07-31 9:59
 */
public class BaseContent {
  /** 基础包 **/
  private String basePacket;
  /** 模块名 **/
  private String module;
  /** 创建人 **/
  private String author;
  /** 版本 **/
  private String version;
  /** 创建时间 **/
  private String createTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
  /** 扩展属性 **/
  private List<Map<String, Object>> extendAttributes;

  /**
   * 初始化
   */
  public BaseContent() {
    super();
  }

  /**
   * 通过包名与类名初始化
   */
  public BaseContent(String basePacket, String module, String author, String version) {
    super();
    this.basePacket = basePacket;
    this.module = module;
    this.author = author;
    this.version = version;
  }

  public String getModule() {
    return module;
  }

  public void setModule(String module) {
    this.module = module;
  }

  public String getBasePacket() {
    return basePacket;
  }

  public void setBasePacket(String basePacket) {
    this.basePacket = basePacket;
  }

  public String getAuthor() {
    return author;
  }

  public void setAuthor(String author) {
    this.author = author;
  }

  public String getVersion() {
    return version;
  }

  public void setVersion(String version) {
    this.version = version;
  }

  public String getCreateTime() {
    return createTime;
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }

  public List<Map<String, Object>> getExtendAttributes() {
    return extendAttributes;
  }

  public void setExtendAttributes(List<Map<String, Object>> extendAttributes) {
    this.extendAttributes = extendAttributes;
  }
}
